'use strict';
const myList = uniCloud.database().collection('my-list')
exports.main = async (event, context) => {
  const {
    pageCode,
    pageSize
  } = event
  //返回数据给客户端
  return await myList.skip((pageCode - 1) * pageSize).limit(pageSize).get()
};
